package com.hlddz.venue_reservation.service.impl;


import com.hlddz.venue_reservation.entity.Visitor;
import com.hlddz.venue_reservation.mapper.VisitorMapper;
import com.hlddz.venue_reservation.service.VisitorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MoShang
 * @since 2024年05月31日
 */
@Service
public class VisitorServiceImpl extends ServiceImpl<VisitorMapper, Visitor> implements VisitorService {
    @Autowired
    private VisitorMapper visitorMapper;

    @Override
    public void addVisitor(Visitor visitor){visitorMapper.addVisitor(visitor);}
    @Override
    public void delVisitor(String username){visitorMapper.delVisitor(username);}

    @Override
    public List<Visitor> getVisitorInfo(String username) {
        return visitorMapper.getVisitorInfo(username);
    }
}
